//
//  UIFont+NWWeight.h
//  mesu
//
//  Created by dl on 2018/7/4.
//  Copyright © 2018年 gdmesu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NSString * NWFontWeight NS_STRING_ENUM;

FOUNDATION_EXPORT NWFontWeight const NWFontWeightUltraLight;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightThin;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightLight;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightRegular;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightMedium;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightSemibold;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightBold;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightHeavy;
FOUNDATION_EXPORT NWFontWeight const NWFontWeightBlack;

@interface UIFont (NWWeight)

/**
 * ultra_light
 * thin
 * light
 * regular
 * medium
 * semibold
 * bold
 * heavy
 * black
 */
+ (UIFont *)nw_systemFontOfSize:(CGFloat)fontSize weight:(NWFontWeight)weight;

// Returns a font using CSS name matching semantics.
+ (UIFont *)nw_fontWithName:(NSString *)fontName size:(CGFloat)fontSize weight:(NWFontWeight)weight;

@end
